<h3><?php __('Bộ lọc'); ?>:</h3>
<div style="margin-bottom:20px;">
    
    <form action="<?php echo $this->Html->url(array('action' => 'index')); ?>" method="POST" id="filter_box">
    
    <?php __('Loại hình'); ?>:
    <select onchange="document.getElementById('filter_box').submit()" name="filter_cat">
        <option><?php __('Tất cả'); ?></option>
        <?php foreach($treatment_categories as $item) {
            $selected = "";
            if($item['TreatmentCategory']['id'] == $cat_id)
            {
                $selected = 'selected="selected"';
            }
        ?>
            <option value="<?php echo $item['TreatmentCategory']['id'] ?>" <?php echo $selected; ?> ><?php echo $item['TreatmentCategory']['name'] ?></option>
        <?php } ?>
    </select>
    
    </form>
    
</div>

